<script setup lang="ts">
import Message from '@/components/message/index'
const handleClick = () => {
  // Message({ type: 'error', message: '登录失败', duration: 1000 })
  Message.warning('登录失败', 5000)
}

// this.$message({type: 'success', message: '提示'})
// this.$message.success('文本')
</script>
<template>
  <button @click="handleClick">提示</button>
</template>

<style scoped></style>
